package com.roger.myHome.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_medical_history")
public class TbMedicalHistory implements Serializable {
    @TableField(value = "id")
    private Long id;

    @TableField(value = "use_medicine")
    private String useMedicine;

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "hospital")
    private String hospital;

    @TableField(value = "department1")
    private String department1;

    @TableField(value = "department2")
    private String department2;

    @TableField(value = "check_type")
    private String checkType;

    @TableField(value = "check_result")
    private String checkResult;

    @TableField(value = "visit_doctor_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date visitDoctorTime;

    @TableField(value = "doctor")
    private String doctor;

    @TableField(value = "doctor_rank")
    private String doctorRank;

    @TableField(value = "symptom")
    private String symptom;

    @TableField(value = "doctor_advice")
    private String doctorAdvice;


}
